<template>
	<view class="search-link" @click="toSearch">
		<view class="inner">
			<icon type="search" size="18" color="#bbb" />
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			toSearch() {
				uni.navigateTo({
					url: '/pages/search/search'
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.search-link {
		background-color: #eb4450;
		padding: 20rpx 16rpx;

		.inner {
			height: 60rpx;
			background-color: #fff;
			border-radius: 8rpx;
			display: flex;
			justify-content: center;
			align-items: center;

			icon {
				margin-top: 4rpx;
			}

			text {
				color: #bbb;
				margin-left: 16rpx;
			}
		}
	}
</style>
